// pages/Transmit3/Transmit3.js
const axios = require('../../utils/http.js')
Page({

  /**
   * 页面的初始数据
   */
  data: {
    MaxLength:140,//最大字数
    Text:'',//输入文本
    SourceId: '',//项目创建者id
    ProId:'',//项目id
  },

  Text:function(e){
    var value = e.detail.value;
    this.setData({
      Text:value,
    })
  },

  onLoad:function(options){
    var proId = options.proId;
    var userId = options.userId;
    if(proId == null){
      axios.ti("需要传入proId","none");
      proId = 90;
    }
    if (userId == null) {
      axios.ti("需要传入userId", "none");
      userId = 100
    }
    this.setData({
      SourceId:userId,
      ProId:proId
    })
  },
  
// 下一步
  nextStep:function(){
    wx.navigateTo({
      url: '../Transmit4/Transmit4?text=' + this.data.Text + '&sourceId=' + this.data.SourceId + '&proId=' + this.data.ProId,
    })
  },
})